package org.qdao.model;

import java.math.BigDecimal;
import java.sql.Timestamp;

import org.qdao.annotation.Column;
import org.qdao.annotation.Column.DBColumnType;
import org.qdao.annotation.PrimaryKey;
import org.qdao.annotation.Table;

@Table(name = "t_text", description = "记录信息")
public class Text {
	// 数字的精度范围是 1 到 38
	@Column(name = "t_id", description = "信息ID", length = 20, type = DBColumnType.NUMBER, nullable = false)
	@PrimaryKey()
	public BigDecimal id;

	@Column(name = "t_msg", description = "信息内容", length = 64, type = DBColumnType.VARCHAR, nullable = false)
	public String message;

	@Column(name = "t_time", description = "记录时间", type = DBColumnType.TIMESTAMP, nullable = false)
	public Timestamp time;
}
